package com.daoeping.service.impl;

import com.daoeping.dao.Bzn_questioncommDAO;
import com.daoeping.data.Bzn_question;
import com.daoeping.data.Bzn_questioncomm;
import com.daoeping.domain.JsonData;
import com.daoeping.domain.Page;
import com.daoeping.domain.TableData;
import com.daoeping.service.Bzn_questioncommService;

public class Bzn_questioncommServiceImpl implements Bzn_questioncommService {
	private Bzn_questioncommDAO bzn_questioncommDAO;
	
	public Bzn_questioncommDAO getBzn_questioncommDAO() {
		return bzn_questioncommDAO;
	}

	public void setBzn_questioncommDAO(Bzn_questioncommDAO bzn_questioncommDAO) {
		this.bzn_questioncommDAO = bzn_questioncommDAO;
	}

	@Override
	public boolean addBzn_questioncomm(Bzn_questioncomm bzn_questioncomm) {
		
		return bzn_questioncommDAO.insertData(bzn_questioncomm);
	}

	@Override
	public JsonData findAllBzn_questioncommByPage(Page page,
			TableData tableData, Bzn_question bzn_question) {
		return bzn_questioncommDAO.findAllBzn_questioncommByPage(page, tableData, bzn_question);
	}

	@Override
	public boolean delBzn_questioncommByQuestionId(Bzn_question bzn_question) {
		return bzn_questioncommDAO.delBzn_questioncommByQuestionId(bzn_question);
	}

}
